<?php 
/* SVN FILE: $Id$ */
/* StudentProvince Test cases generated on: 2009-11-20 06:39:58 : 1258699198*/
App::import('Model', 'StudentProvince');

class StudentProvinceTestCase extends CakeTestCase {
	var $StudentProvince = null;
	var $fixtures = array('app.student_province', 'app.student');

	function startTest() {
		$this->StudentProvince =& ClassRegistry::init('StudentProvince');
	}

	function testStudentProvinceInstance() {
		$this->assertTrue(is_a($this->StudentProvince, 'StudentProvince'));
	}

	function testStudentProvinceFind() {
		$this->StudentProvince->recursive = -1;
		$results = $this->StudentProvince->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('StudentProvince' => array(
			'id'  => 1,
			'name'  => 'Lorem ipsum dolor sit amet',
			'student_count'  => 1
		));
		$this->assertEqual($results, $expected);
	}
}
?>